3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
QuickDraw 3D defines a set of group state flags for constructing a group state value. You pass a group state value to the Q3DisplayGroup_SetState function to set the state of a display group. The state value is a set of flags that determine how a group is traversed during rendering or picking, or when you want to compute a bounding box or sphere. Here are the group state flags:
typedef enum TQ3DisplayGroupStateMasks {
kQ3DisplayGroupStateNone = 0,
kQ3DisplayGroupStateMaskIsDrawn = 1 << 0,
kQ3DisplayGroupStateMaskIsInline = 1 << 1,
kQ3DisplayGroupStateMaskUseBoundingBox = 1 << 2,
kQ3DisplayGroupStateMaskUseBoundingSphere = 1 << 3,
kQ3DisplayGroupStateMaskIsPicked = 1 << 4,
kQ3DisplayGroupStateMaskIsWritten = 1 << 5
} TQ3DisplayGroupStateMasks;
By default, all group state flags are set except for the kQ3DisplayGroupStateMaskIsInline flag, which is clear.
Previous | QD3D Book | Overview | Chapter Contents | Next |